package com.jmp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * @author cjr
 */
@Data
@Builder
public class AddressListResponse {
    @ApiModelProperty(value = "地址列表", dataType = "AddressListResponse.Address")
    private List<Address> addressList;

    @ApiModel("AddressListResponse.Address")
    @Data
    @Builder
    public static class Address {
        private Integer addressId;
        @ApiModelProperty("定位地址")
        private String locationAddress;
        @ApiModelProperty("详细地址")
        private String detailedAddress;
        @ApiModelProperty("是否默认: 1默认")
        private Integer defaultFlag;
        @ApiModelProperty("收货人姓名")
        private String receiveName;
        @ApiModelProperty("收货人电话")
        private String receivePhone;
        private String cityName;
        private String latitude;
        private String longitude;
    }
}
